<template>
<div class="xyt-btn">
  <img src="../../assets/img/btn-bg.png" class="bg" alt="">
  <div class="xyt-btn-body">
    <slot></slot>
  </div>
</div>
</template>
<script setup>
</script>
<style lang="scss" scoped>
.xyt-btn {
  position: relative;
  line-height: 36px;
  height: 40px;
  color: #fff;
  text-align: center;
  .bg {
    margin: auto;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
  }
}
</style>